package com.easy.common.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("`order`")  // 关键修改：添加表名注解并用反引号包围
public class Order {
    @TableId(type = IdType.ASSIGN_UUID)
    private String orderNo;
    private Integer userId;
    private Integer seckillId;
    private Integer goodsId;
     private String goodsName;
      private String goodsImg;
    private BigDecimal secPrice;
    private Integer addrId;
    private Integer status;
    private LocalDateTime payTime;
    private LocalDateTime cancelTime;
    @TableLogic//软删除
     private Integer isdel;
    private LocalDateTime createtime;
     private LocalDateTime updatetime;





}
